<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sp" uri="/WEB-INF/tld/spring.tld" %>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
	<head>
		<title>黄石物流后台管理系统</title>
		<%@ include file="/jsp/common/common_script.jsp"%>
		<script type="text/javascript">
			var s_pageStyleCd = '<%= request.getParameter("pageStyleCd")%>';
			s_pageStyleCd = (s_pageStyleCd != null && $.trim(s_pageStyleCd).length > 0)? s_pageStyleCd : "-1"; 
			
			var iSource = {
				"SYSTEM": "<sp:message code='apache.Creeper.source.system'/>", 
				"FETCH":"<sp:message code='apache.Creeper.source.fetch'/>"
			};
		</script>
		<script src="${ctx }/js/cms/staticManage.js"></script>
		<script src="${ctx }/js/cms/sm-info.js"></script>
		<script src="${ctx }/js/cms/sm-adv.js"></script>
	</head>
	<body>		
	
		<table id="sm_moduleGrid" ></table>		
	
		<div id="optionalDlg" class="easyui-window" closed="true" title="" resizable="false" iconCls="icon-exportExcel" style="width:800px; height:450px;text-align:center; background: #fafafa;">
			<div class="easyui-layout" fit="true">
				<div id="optionalPanel" region="center" border="false" style="background:#fff;border:1px solid #ccc;">
					<%-- 待选新闻搜索条件项 --%>
					<table id="infoTable" class="queryTable searchItem" style="display:none;">
						<tr id="queryRowId">
							<%-- 
							<td class="queryTitle" width="55px">新闻分类</td>
							<td class="queryContent">
							    <select id="info_categoryId" panelHeight="auto">
							    </select>
							</td>
							--%>
							
							<td class="queryTitle" width="65px">标题</td>
							<td class="queryContent">
							    <input class="inputText" type="text" id="info_title" />
							</td>
							<td class="queryBtnTd">
							    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onClick="doQueryInfo()">查询</a>
							</td>
						</tr>
					</table>
					
					<%-- 待选广告搜索条件项 --%>
					<table id="advTable" class="queryTable searchItem" style="display:none;">
						<tr id="queryRowId">
							<td class="queryTitle" width="55px">标题</td>
							<td class="queryContent">
							    <input class="inputText" type="text" id="adv_title" />
							</td>
							<td class="queryBtnTd">
							    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onClick="doQueryAdv()">查询</a>
							</td>
						</tr>
					</table>
					
					<%-- 待选列表 --%>
					<table id="sm_optionalGrid"></table>
				</div>
			</div>
		</div>

		<div id="cascadeDlg" class="easyui-window" closed="true" title="" resizable="false" iconCls="icon-exportExcel" style="width:800px; height:450px;text-align:center; background: #fafafa;">
			<div class="easyui-layout" fit="true">
				<div id="optionalPanel" region="center" border="false" style="background:#fff;border:1px solid #ccc;">
					<%-- 新闻管理搜索条件项 --%>
					<table id="infoMgrTable" class="queryTable searchItem" style="display:none;">
						<tr>
							<%-- 
							<td class="queryTitle" width="55px">新闻分类</td>
							<td class="queryContent">
							    <select id="infoMgr_categoryId" panelHeight="auto" style="width: 130px;">
							    </select>
							</td>
							--%>
							
							<td class="queryTitle" width="65px">标题</td>
							<td class="queryContent">
							    <input class="inputText" type="text" id="infoMgr_title" />
							</td>
							<td class="queryBtnTd">
							    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onClick="doQueryInfoMgr()">查询</a>
							</td>
						</tr>
					</table>
					
					<%-- 广告管理搜索条件项 --%>
					<table id="advMgrTable" class="queryTable searchItem" style="display:none;">
						<tr>
							<td class="queryTitle" width="55px">标题</td>
							<td class="queryContent">
							    <input class="inputText" type="text" id="advMgr_title" />
							</td>
							<td class="queryBtnTd">
							    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onClick="doQueryAdvMgr()">查询</a>
							</td>
						</tr>
					</table>
					
					<%-- 管理列表 --%>
					<table id="sm_cascadeGrid" ></table>
				</div>
			</div>
		</div>

		<div id="editLayoutDlg" class="easyui-window" closed="true" title="" iconCls="icon-add" style="width:560px; height:445px;text-align:center; background: #fafafa;">
			<div class="easyui-layout" fit="true">
				<div region="center" border="false" style="background:#fff;border:1px solid #ccc;padding-left: 25px;">
					<%-- 新闻陈列Form --%>
					<form id="editLayoutInfoForm" method="post" class="searchItem">
						<table border="0" class="queryTable" width="500px" height="125px" style="margin-bottom: 0px">
							<tr>
								<td class="queryTitle" width="60">起始时间</td>
								<td class="queryContent">
									<input type="hidden" id="layoutInfo_informationId" name="layoutInfo.informationId"/>
									<input type="hidden" id="layoutInfo_typeId" name="layoutInfo.typeId"/>
									<input id="layoutInfo_beginTime" name="layoutInfo.beginTime" class="easyui-datetimebox" editable="false" required="true" style="width: 155px;"/>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">结束时间</td>
								<td class="queryContent">
									<input id="layoutInfo_endTime" name="layoutInfo.endTime" class="easyui-datetimebox" editable="false" required="true" style="width: 155px;"/>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">排序</td>
								<td class="queryContent">
									<input id="layoutInfo_sortNo" name="layoutInfo.sortNo" class="easyui-numberbox" required="true" maxlength="6" style="width: 155px;"/>
								</td>
							</tr>
							
							<tr>
								<td class="queryTitle" colspan="2" style="text-align: left; padding-left: 5px;"><strong>新闻详细信息</strong></td>
							</tr>
							<tr>
								<td class="queryTitle">标题</td>
								<td class="queryContent">
									<span id="layoutInfo_title"></span>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">分类</td>
								<td class="queryContent">
									<span id="layoutInfo_categoryName"></span>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">内容</td>
								<td class="queryContent">
									<div id="layoutInfo_content" style="width: 400px; height: 159px; overflow: auto;"></div>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">备注</td>
								<td class="queryContent">
									<div id="layoutInfo_remark"></div>
								</td>
							</tr>
						</table>
					</form>
					
					<%-- 广告陈列Form --%>
					<form id="editLayoutAdvForm"  method="POST" style="width: 500px;height: 400px" class="searchItem">
						<table border="0" class="queryTable" width="500px" height="400px" style="margin-bottom: 0px">
							<tr>
								<td class="queryTitle" width="80">起始时间</td>
								<td class="queryContent">
									<input type="hidden" id="layoutAdv_adId" name="layoutAdv.adId"/>
									<input type="hidden" id="layoutAdv_typeId" name="layoutAdv.typeId"/>
									<input id="layoutAdv_startTime" name="layoutAdv.publishStartTime" class="easyui-datetimebox" editable="false" required="true" style="width: 155px;"/>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">截止时间</td>
								<td class="queryContent">
									<input id="layoutAdv_endTime" name="layoutAdv.publishEndTime" class="easyui-datetimebox" editable="false" required="true" style="width: 155px;"/>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">排序</td>
								<td class="queryContent">
									<input id="layoutAdv_sortNo" name="layoutAdv.sortNo" class="easyui-numberbox" required="true" maxlength="6" style="width: 155px;"/>
								</td>
							</tr>
							
							<tr>
								<td class="queryTitle" colspan="2" style="text-align: left; padding-left: 5px;"><strong>广告详细信息</strong></td>
							</tr>
							<tr>
								<td class="queryTitle">标题</td>
								<td class="queryContent">
									<span id="layoutAdv_title"></span>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">链接地址</td>
								<td class="queryContent">
									<span id="layoutAdv_url"></span>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">创建时间</td>
								<td class="queryContent">
									<span id="layoutAdv_createTime"></span>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">最近更新时间</td>
								<td class="queryContent">
									<span id="layoutAdv_updateTime"></span>
								</td>
							</tr>
							<tr>
								<td class="queryTitle">备注</td>
								<td class="queryContent">
									<div id="layoutAdv_remark"></div>
								</td>
							</tr>
						</table>
					</form>
				</div>
				<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
					<a id="ensureBtn" class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)">确定</a>
					<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="closeLayoutWindow()">取消</a>
				</div>
			</div>
		</div>
	</body>
</html>
		